Quote Originally Posted by nimitzhunter View Post
you can use the while or do-while loop inside your chooseproduct() function. in each case of switch, you need "break; "
As he has return there the OP donst need to place in the break. Break is only needed when you have to break the control executing the next case. With the return you just exit the function without executing the following case within the switch.

EDIT: if you use while or do-while then ignore my above comment.

ssharish